<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>欢迎登录</title>
<link rel="stylesheet" href="css/jd.css" >
<script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
<script type="text/javascript">
$(function(){
	var $passWord = $('.passWord');
	var $userName = $('.userName');
	var $passWordVal = $passWord.val();
	var $userNameVal = $userName.val();
	var self = this;
	var $login_submit = $('.login_submit');
		$("#login_submit").click(function(){
			if(self.$passWordVal!=''&&self.$userNameVal!=''){
				setTimeout(function(){
					window.open('http://localhost:8080/MyShop/ShowProListServ2?pageNum=1')
				},300)
				alert('登录成功');
			}
			else{
				alert("请重新输入");
			}
		})
})
</script>
</head>
<body>
		<div class="back">
		<div class="login_form_box">
			<div class="loginform">
				<h1 >账户登陆</h1>
				<form action="loginServ" method = "post">
					<div class="form_item">
						<label>
							<img src="img/用户.png"/>
						</label>
						<input type="text" placeholder="会员名/邮箱/手机" name="userName" class="userName">
					</div>
				</form>
				<br/>
				<form action="loginServ" method = "post">
					<div class="form_item">
						<label>
							<img src="img/密码.png">
						</label>
						<input type="password" placeholder="密码" name = "passWord"class="passWord"/>
					</div>
				</form>
				<button class="login_submit" style="cursor:pointer" id="login_submit">
					登&nbsp;&nbsp;&nbsp;&nbsp;录<!--  <a href ="http://localhost:8080/MyShop/ShowProListServ2?pageNum=1"style="color: white;" onclick="back()">登&nbsp;&nbsp;&nbsp;&nbsp;录</a>-->
				</button>
			</div>
			<div class="coagent" style="cursor:pointer" />
				<b><img src="img/右箭头.png"/></b>
				<a href="http://localhost:8080/083011/reg1.jsp">立即注册</a>
			</div>
		</div>
		</div>

<!--  <form action="loginServ" method = "post">
	用户名
	<input type = "text" name ="userName" class="userName"/>
	<br/>
	密码
	<input type = "password" name = "passWord" class="passWord"/>
	<br/>
	<input type = "submit" id="sub_1"/>
	<br/>
	</form>
	-->
</body>
</html>